package com.jyw.business.de.domain.dto.web;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("需求操作请求实体")
@Data
public class DemandOperDto {
    @ApiModelProperty("需求主键")
    @NotNull(message = "需求id不能为空")
    private Long id;

    @ApiModelProperty("原因")
    @NotEmpty(message = "原因不能为空")
    private String reason;

}
